using UnityEngine;
using System.Collections;

public class IntroAnimation : MonoBehaviour {

    int count;

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
        if (count == 0)
        {
            if (transform.position.y < 39)
            {
                transform.Translate(0, 0.4f, 0);
            }
            else 
            
            {
                count++;
            }
        }
        if (count == 1)
        {
            if (transform.position.x > -41.5f)
            {
                transform.Translate(-0.2f, 0,0);
            }
            else
            {
                count++;
            }
        }
        if (count == 2)
        {
            if (transform.position.y > 31.98906f)
            {
                transform.Translate(0, -0.2f, 0);
            }
            else
            {
                Destroy(this);
            }
        }
	}
}
